package com.qianfeng.client_7001.service;

import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import com.qianfeng.client_7001.client.SearchClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * author: 田晋宇
 * datetime:2021/10/29 16:06
 * email:853796359@qq.com
 */
@Service
public class AServiceImpl implements  AService {

    @Autowired
    private SearchClient searchClient;

    @Transactional
    @LcnTransaction
    public void add(){
        searchClient.helloSearch();
        int i=1/0;
    }
}
